﻿@model INTREPWEB.Models.Navio
@{
    if (IsAjax)
    {
        Layout = null;
    }  
}
<div class="editor-field">
    @Html.DropDownListFor(x => x.ArmadorId, ViewBag.Armadores as SelectList)
    @Ajax.ActionLink("+", "Criar", "Armador", new AjaxOptions { OnBegin = "criaModal('criararmador')", UpdateTargetId = "criararmador", OnSuccess = "$.modalPopup('criararmador', 'Armador')"})
    <br />
    @Html.ValidationMessageFor(model => model.ArmadorId)
</div>